package com.xianyun.book.dto.domainevent;

import com.xianyun.book.event.DomainEventI;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 买家订单创建事件
 */
@Data
public class OrderBuyCreateEvent implements DomainEventI {
    /**订单编号*/
    @NotEmpty
    private String orderId;
    /**关联订单编号*/
    @NotEmpty
    private String relateOrderId;
    /**支付状况*/
    @NotNull
    private Integer payStatus;
    /**书籍ISBN*/
    @NotEmpty
    private String isbn;
}
